﻿<!DOCTYPE html>

<html>
<head>
 <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
     @System.Web.Optimization.Scripts.Render("~/bundles/jquery")
    @System.Web.Optimization.Scripts.Render("~/bundles/jqueryval")
    @Styles.Render("/Content/GameStore/css")
    @Styles.Render("/Content/GameStore/Admin/cs")
    @System.Web.Optimization.Scripts.Render("/bundles/GameStore")
    @System.Web.Optimization.Scripts.Render("/bundles/GameStore/Util")
    
</head>

<body>
    <div id="main_container">
        <div class="top_bar">
        @{string usuarioLogeado="";
            if(System.Web.Security.Membership.GetUser()!=null){
                 usuarioLogeado = "Hola " + System.Web.Security.Membership.GetUser().UserName;
            }
            
            }
            @usuarioLogeado

        [
        @{
            
            if(Request.IsAuthenticated){
               @Html.ActionLink("Cerrar Sesión", "LogOff", "Perfil", new {area="" },null)
            }else{
               @Html.ActionLink("Iniciar Sesión", "LogIn", "Perfil", new { area=""},null)
            }
            }            
           ]
         
        </div>
        <div id="header">
            <div id="logo">
                <a href="/Home">
                    <img src="/Images/GameStore/logo.png" alt="logo" title="" style="width: 50%;" />
                </a>
            </div>
        </div>
        <div id="main_content">
            <div id="menu_tab">
                <div class="left_menu_corner">
                </div>
                <ul class="menu">
                    <li>@Html.ActionLink("Pagina principal", "Index", "Home", new  {area="" }, new { @class = "nav1" })</li>
                    <li class="divider"></li>
                    <li>@Html.ActionLink("Xbox 360", "Xbox360", "Home", new { area = "" }, new { @class = "nav2" })</li>
                    <li class="divider"></li>
                    <li>&nbsp;@Html.ActionLink(" ", "Ps3", "Home", new { area="",Tipo = "" }, new { @class = "nav3" })</li>
                    <li class="divider"></li>
                    <li>&nbsp;@Html.ActionLink("PS Vita", "PsVita", "Home", new { area="",Tipo = "" }, new { @class = "nav4" })</li>
                    <li class="divider"></li>
                    <li>@Html.ActionLink(" ", "_3DS", "Home", new { area="",Tipo = "" }, new { @class = "nav5" })</li>
                    <li class="divider"></li>
                    <li>@Html.ActionLink(" ", "Wii", "Home", new { area="",Tipo = "" }, new { @class = "nav6" })</li>
                    <li class="divider"></li>
                    <li>@Html.ActionLink("Consultar Productos", "ConsultarProductos", "Administracion", new { area = "Admin" }, new { @class = "nav7" })</li>
                    <li class="divider"></li>
                    <li>@Html.ActionLink("Agregar Productos", "AltaProducto", "Administracion", new { area = "Admin" }, new { @class = "nav8" })</li>
                    <li class="divider"></li>
                </ul>
                <div class="right_menu_corner">
                </div>
            </div>
            <!-- end of menu tab -->
            <div class="crumb_navigation">
                Navigation: <span class="current">Home</span>
            </div>
            @RenderBody()
        </div>
        <!-- end of main content -->
        <div class="footer">
            <div class="left_footer">
                <img src="/Images/GameStore/logo.png" alt="" title="" width="170" height="49" />
            </div>
            <div class="center_footer">
            </div>
            <div class="right_footer">
            </div>
        </div>
    </div>
    <!-- end of main_container -->
</body>
</html>

